Skip to content

Conversation

@dimadesu
Copy link
Contributor

@dimadesu dimadesu commented Sep 26, 2025

Makes preview aware of display orientation allowing it to correctly display bitmap and other non-camera previewable sources.

Implements Git Issue #238.

In camera demo PreviewView is in "fill" mode by default

"Fill" Before

Portrait is fine.

before-port-fill

In landscape bitmap is wrong size, stretched vertically.

before-land-fill

"Fill" After

In portrait nothing changed. Correct.

after-port-fill

Landscape shows correct bitmap proportions.

after-land-fill

It's more evident in "fit" mode of PreviewView

Portrait is fine.

before-port-fit

In landscape bitmap is wrong size, stretched vertically.

before-landscape-fit

"Fit" After

In portrait nothing changed. Correct.

after-port-fit

Landscape now shows correct bitmap proportions.

after-land-fit

@ThibaultBee
Copy link
Owner

Got issue with rebase. Anyway, the patch is there: 5260b90

dimadesu added a commit to dimadesu/LifeStreamer that referenced this pull request Oct 27, 2025
I originally had to make a local copy and tweak to add a fix for custom source preview rotation. After my fix was contributed back to StreamPack ThibaultBee/StreamPack#239 this local copy can be deleted.
@dimadesu dimadesu deleted the feature/non-camera-preview-orientation branch October 27, 2025 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants